The Travelling Salesman Problem (TSP) is one of the most famous problems in computer science. It asks: "Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the origin city?"
This visualization uses a genetic algorithm to find an optimal solution. The algorithm works by: